/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ec.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商品类型Entity
 * @author zkool
 * @version 2016-01-16
 */
public class ItemType extends DataEntity<ItemType> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String haveProp;		// 是否有属性
	private String haveParm;		// 是否拥有参数
	private String joinBrand;		// 是否关联品牌
	private String joinSpec;		// 是否关联规格
	
	public ItemType() {
		super();
	}

	public ItemType(String id){
		super(id);
	}

	@Length(min=1, max=100, message="名称长度必须介于 1 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=2, message="是否有属性长度必须介于 1 和 2 之间")
	public String getHaveProp() {
		return haveProp;
	}

	public void setHaveProp(String haveProp) {
		this.haveProp = haveProp;
	}
	
	@Length(min=1, max=2, message="是否拥有参数长度必须介于 1 和 2 之间")
	public String getHaveParm() {
		return haveParm;
	}

	public void setHaveParm(String haveParm) {
		this.haveParm = haveParm;
	}
	
	@Length(min=1, max=2, message="是否关联品牌长度必须介于 1 和 2 之间")
	public String getJoinBrand() {
		return joinBrand;
	}

	public void setJoinBrand(String joinBrand) {
		this.joinBrand = joinBrand;
	}
	
	@Length(min=1, max=2, message="是否关联规格长度必须介于 1 和 2 之间")
	public String getJoinSpec() {
		return joinSpec;
	}

	public void setJoinSpec(String joinSpec) {
		this.joinSpec = joinSpec;
	}
	
}